<?php
App::uses('AppController', 'Controller');
/**
 * Reports Controller
 *
 * @property Report $Report
 */
class ReportsController extends AppController {
	//var $uses = array('Report');
	
	public function index() 
	{
		if (CakeSession::read("Auth.User.UserType") != 'Administrator' || CakeSession::read("Auth.User.UserType") != 'Contact Worker' ) {
			// No match, redirect the user back to the index action.
			$this->Session->setFlash(__('You cant access this!'));
			$this->redirect('/');
		}
		$result = $this->Report->jobWOldReferrals();  
		$this->set('reports',$result);
	}
	//GOOGLE CHARTS Display Data
	//Export to CSV
	

}
